﻿<UserControl x:Class="SchedulerControl.Adorners.CursorPlane"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" mc:Ignorable="d"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="52" d:DesignWidth="49">
    <Grid x:Name="LayoutRoot" IsHitTestVisible="False" >
        <Grid.Resources>
            <SolidColorBrush Color="White" x:Key="CursorFill" />
            <LinearGradientBrush StartPoint="-0.0277778,0.5" EndPoint="1.02778,0.5" x:Key="CursorFill1">
                <LinearGradientBrush.GradientStops>
                    <GradientStop Color="#FFFFFFFF" Offset="0"/>
                    <GradientStop Color="#FFC5C5C5" Offset="0.6"/>
                    <GradientStop Color="#FF8B8B8B" Offset="1"/>
                </LinearGradientBrush.GradientStops>
            </LinearGradientBrush>
        </Grid.Resources>
        <Path Fill="{StaticResource CursorFill}" Width="22" Height="10" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF000000" Data="F1 M 0.689217,6.84L 5.40717,0.84L 5.40717,4.84L 17.202,4.84L 17.202,0.84L 21.92,6.84L 17.202,12.84L 17.202,8.84L 5.40717,8.84L 5.40717,12.84L 0.689217,6.84 Z " 
                  StrokeThickness="1" IsHitTestVisible="False" Grid.RowSpan="3" Grid.ColumnSpan="3" HorizontalAlignment="Left" VerticalAlignment="Top" Visibility="Collapsed" Name="pathSize"
              Margin="-11,-5" UseLayoutRounding="True">
            <Path.RenderTransform>
                <TransformGroup>
                    <RotateTransform x:Name="pathSizeRotate" CenterX="11" CenterY="5" Angle="45"/>
                    <TranslateTransform x:Name="pathSizeTranslate" />
                </TransformGroup>
            </Path.RenderTransform>
        </Path>
        <Path x:Name="pathRotate" Fill="{StaticResource CursorFill}" Width="18" Height="18" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF000000" 
              Data="F1 M 5.8,22.52L 0.799999,17.52L 3.8,17.52C 3.82129,12.9986 3.84259,8.4773 5.50925,6.14396C 7.17592,3.81063 10.488,3.66531 13.8,3.52L 18.8,3.51999L 18.8,0.519995L 23.518,5.51999L 18.8,10.52L 18.8,7.51999C 15.0296,7.33198 11.2593,7.14396 9.42592,8.81063C 7.59259,10.4773 7.6963,13.9986 7.8,17.52L 10.8,17.52L 5.8,22.52 Z "
              StrokeThickness="1"  IsHitTestVisible="False" Grid.RowSpan="3" Grid.ColumnSpan="3" HorizontalAlignment="Left" VerticalAlignment="Top" Visibility="Collapsed"
              Margin="-6" UseLayoutRounding="True">
            <Path.RenderTransform>
                <TransformGroup>
                    <RotateTransform x:Name="pathRotateRotate" CenterX="6" CenterY="6" />
                    <TranslateTransform x:Name="pathRotateTranslate" />
                </TransformGroup>
            </Path.RenderTransform>
        </Path>
        <Path x:Name="pathMove" Width="20" Height="20" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Stroke="Black" Fill="White" 
              Data="F1 M 20.25,9.96796L 16.3363,6.22339L 16.3363,8.64709L 11.6786,8.64709L 11.6786,4.24344L 13.7776,4.24344L 10.25,0.25L 6.78274,4.15012L 8.82143,4.21234L 8.82143,8.6774L 4.13393,8.6774L 4.13393,6.3447L 0.25,9.87463L 4.10416,13.6902L 4.10416,11.5554L 8.82143,11.5554L 8.82143,16.342L 6.78274,16.342L 10.25,20.25L 13.6577,16.2814L 11.6786,16.2814L 11.6786,11.4948L 16.3958,11.4948L 16.3958,13.676L 20.25,9.96796 Z "
              HorizontalAlignment="Left" VerticalAlignment="Top" Margin="-10"
              IsHitTestVisible="False" Visibility="Collapsed" UseLayoutRounding="True">
            <Path.RenderTransform>
                <TranslateTransform x:Name="pathMoveTranslate" />
            </Path.RenderTransform>
        </Path>
        <Path x:Name="pathCrosshair" Width="19" Height="19" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" StrokeMiterLimit="2.75" Stroke="#FF000000" Fill="#FFFFFFFF" Data="M 12.5,8.49643L 18.5,8.5L 18.5,10.5L 12.5,10.4964L 12.5,8.49643 Z M 0.5,8.49643L 6.50002,8.5L 6.50002,10.5L 0.5,10.4964L 0.5,8.49643 Z M 8.4964,6.5L 8.49998,0.5L 10.5,0.5L 10.4964,6.5L 8.4964,6.5 Z M 8.49998,18.5L 8.50356,12.5L 10.5036,12.5L 10.5,18.5L 8.49998,18.5 Z M 8.49998,8.5L 10.5,8.50357L 10.5,10.5L 8.49998,10.4964L 8.49998,8.5 Z "
      Margin="-9.5" HorizontalAlignment="Left" VerticalAlignment="Top" Visibility="Collapsed" UseLayoutRounding="True">
            <Path.RenderTransform>
                <TranslateTransform x:Name="pathCrosshairTranslate" />
            </Path.RenderTransform>
        </Path>
        <Grid Width="21" Height="21" x:Name="paneSelectionBrush" Margin="-10" HorizontalAlignment="Left" VerticalAlignment="Top" UseLayoutRounding="True"
              Visibility="Collapsed">
            <Grid.RenderTransform>
                <TranslateTransform x:Name="pathSelectionBrushTranslate" />
            </Grid.RenderTransform>
            <Ellipse HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Stroke="Black" UseLayoutRounding="False"
                     StrokeDashArray="2,2" />
            <Ellipse HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Stroke="White" UseLayoutRounding="False" 
                     StrokeDashArray="0,2,0"/>
            <Rectangle  Width="3" Height="3" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" StrokeMiterLimit="2.75" Stroke="#FF000000" Fill="#FFFFFFFF"/>
        </Grid>
        <Grid Width="21" Height="21" x:Name="paneBrush" Margin="-10" HorizontalAlignment="Left" VerticalAlignment="Top"
              Visibility="Collapsed" UseLayoutRounding="True" >
            <Grid.RenderTransform>
                <TranslateTransform x:Name="pathBrushTranslate" />
            </Grid.RenderTransform>
            <Ellipse HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Stroke="Black"/>
            <Ellipse Margin="1"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Stroke="White" />
            <Rectangle  Width="3" Height="3" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" StrokeMiterLimit="2.75" Stroke="#FF000000" Fill="#FFFFFFFF"/>
        </Grid>
        <Grid Visibility='Collapsed' Margin='-6.5' HorizontalAlignment="Left" VerticalAlignment="Top"
              x:Name='paneMarkerSelect'>
            <Grid.RenderTransform>
                <TranslateTransform x:Name="paneMarkerSelectTranslate" />
            </Grid.RenderTransform>
            <Ellipse Height='11' Width='11' Stroke='Black' />
            <Ellipse Height='13' Width='13' Stroke='White' />
        </Grid>
    </Grid>
</UserControl>
